/// currentTime : 1630029552802
/// data : [{"content":"","createTime":1629983272,"delFlag":0,"modifyTime":1629983272,"status":1,"toUserId":10000019,"userId":10000011},{"content":"","createTime":1629983180,"delFlag":0,"modifyTime":1629983180,"status":1,"toUserId":10000019,"userId":10000011},{"content":"","createTime":1629983110,"delFlag":0,"modifyTime":1629983110,"status":1,"toUserId":10000019,"userId":10000011},{"content":"","createTime":1629982945,"delFlag":0,"modifyTime":1629982945,"status":1,"toUserId":10000019,"userId":10000011}]
/// resultCode : 1

class FriendApplist {
  int currentTime;
  List<Data> data;
  int resultCode;

  FriendApplist({this.currentTime, this.data, this.resultCode});

  FriendApplist.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(Data.fromJson(v));
      });
    }
    resultCode = json["resultCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["resultCode"] = resultCode;
    return map;
  }
}

/// content : ""
/// createTime : 1629983272
/// delFlag : 0
/// modifyTime : 1629983272
/// status : 1
/// toUserId : 10000019
/// userId : 10000011

class Data {
  String content;
  int createTime;
  int delFlag;
  int modifyTime;
  String status;
  String toUserId;
  String userId;

  Data(
      {this.content,
      this.createTime,
      this.delFlag,
      this.modifyTime,
      this.status,
      this.toUserId,
      this.userId});

  Data.fromJson(dynamic json) {
    content = json["content"];
    createTime = json["createTime"];
    delFlag = json["delFlag"];
    modifyTime = json["modifyTime"];
    status = json["status"];
    toUserId = json["toUserId"];
    userId = json["userId"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["content"] = content;
    map["createTime"] = createTime;
    map["delFlag"] = delFlag;
    map["modifyTime"] = modifyTime;
    map["status"] = status;
    map["toUserId"] = toUserId;
    map["userId"] = userId;
    return map;
  }
}
